package com.wyw.design.model.learning.behavioral.status;

/**
 * @Title   关机状态
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/19 13:52
 * Update History:
 * Author        Time            Content
 */
public class PowerOffState extends TVState {
    @Override
    void powerOn() {
        System.out.println("开机...");
        // 开机后状态默认为 待机
        super.remoteControlMachine.setCurrentState(RemoteControlMachine.STANDBY_STATE);
        // 执行待机的行为
        super.remoteControlMachine.standby();
    }

    @Override
    void powerOff() {
        // do nothing
    }

    @Override
    void play() {
        // do nothing
    }

    @Override
    void standby() {
        // do nothing
    }
}